package org.spring.learn.demo.annotation.configures.xml;


import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * xml 配置方式
 */
public class XmlTest {

    @Test
    public void Test(){
        ApplicationContext app = new ClassPathXmlApplicationContext("application.xml");
        Object person = app.getBean("person");
        System.out.println(person);

    }
}
